package com.boil.qz.safekavass.web.request.param;

import com.boil.util.Constants;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;

/**
 * Created by ChenYong on 2017-05-25.
 * <br>
 * 根据学习月份统计学习次数的请求参数。
 */
public class LearnCountByLearnMonthParam {
    /**
     * 学习月份
     */
    @NotBlank(message = "学习月份不能为空")
    @Pattern(regexp = Constants.DATE_2_RE, message = "学习月份格式不正确")
    private String learnMonth;

    /**
     * 默认构造器。
     */
    public LearnCountByLearnMonthParam() {
        super();
    }

    public String getLearnMonth() {
        return learnMonth;
    }

    public void setLearnMonth(String learnMonth) {
        this.learnMonth = learnMonth;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("LearnCountByLearnMonthParam{");
        sb.append("learnMonth='").append(learnMonth).append('\'');
        sb.append('}');
        return sb.toString();
    }
}